package com.project.server.domain.garden;

import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 园区门禁信息对象 t_garden_guard
 *
 * @author project
 * @date 2021-07-01
 */
public class TGardenGuard extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 门禁编号
     */
    private Long guardId;

    /**
     * 通过用户
     */
    @Excel(name = "通过用户")
    private String userName;

    /**
     * 门禁名称（品牌）
     */
    @Excel(name = "门禁名称")
    private String guardName;

    /**
     * 门禁位置
     */
    @Excel(name = "门禁位置")
    private String guardPosition;

    /**
     * 出入类型（0代表出 1代表入）
     */
    @Excel(name = "出入类型", readConverterExp = "0=出,1=入")
    private String guardType;

    /**
     * 出入结果（0代表成功 1代表失败）
     */
    @Excel(name = "出入结果", readConverterExp = "0=成功,1=失败")
    private String guardResult;

    public void setGuardId(Long guardId) {
        this.guardId = guardId;
    }

    public Long getGuardId() {
        return guardId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setGuardName(String guardName) {
        this.guardName = guardName;
    }

    public String getGuardName() {
        return guardName;
    }

    public void setGuardPosition(String guardPosition) {
        this.guardPosition = guardPosition;
    }

    public String getGuardPosition() {
        return guardPosition;
    }

    public void setGuardType(String guardType) {
        this.guardType = guardType;
    }

    public String getGuardType() {
        return guardType;
    }

    public void setGuardResult(String guardResult) {
        this.guardResult = guardResult;
    }

    public String getGuardResult() {
        return guardResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("guardId", getGuardId())
                .append("userName", getUserName())
                .append("guardName", getGuardName())
                .append("guardPosition", getGuardPosition())
                .append("guardType", getGuardType())
                .append("guardResult", getGuardResult())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
